package com.itic.appbase.framework.type;

public enum YwymType {
	video("video","视频"),goods("goods","商品");
	private String type;
	private String name;
	YwymType(String type,String name){
		this.type = type;
		this.name = name;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public static YwymType getYwymType(String type){
		YwymType YwymType = null;
		switch(type){
		case"video":
			YwymType = YwymType.video;
			break;
		case"goods":
			YwymType = YwymType.goods;
			break;
			default:break;
		}
		return YwymType;
	}
}
